package research.domain;

import java.sql.Blob;

import research.entity.Entity;
import research.entity.EntityType;

public final class Scratch extends Entity {
	private String name;
	private long width_pixel;
	private double width_meter;
	private Blob photo_real;
	private Blob photo_processing;
	private String description;
	private Sample sample;

	public Scratch() {
		super(EntityType.Scratch);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getWidth_pixel() {
		return width_pixel;
	}

	public void setWidth_pixel(long width_pixel) {
		this.width_pixel = width_pixel;
	}

	public double getWidth_meter() {
		return width_meter;
	}

	public void setWidth_meter(double width_meter) {
		this.width_meter = width_meter;
	}

	public Blob getPhoto_real() {
		return photo_real;
	}

	public void setPhoto_real(Blob photo_real) {
		this.photo_real = photo_real;
	}

	public Blob getPhoto_processing() {
		return photo_processing;
	}

	public void setPhoto_processing(Blob photo_processing) {
		this.photo_processing = photo_processing;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Sample getSample() {
		return sample;
	}

	public void setSample(Sample samples) {
		this.sample = samples;
	}

	public static Scratch getNew() {
		Scratch scr = new Scratch();
		scr.setName("");
		scr.setDescription("");
		scr.setWidth_pixel(0);
		scr.setWidth_meter(0.0);
		scr.setPhoto_real(null);
		scr.setPhoto_processing(null);
		return scr;
	}
}
